window.disableSelection = function(target)
    {
        if (typeof target.onselectstart!="undefined") 
        {
            //IE route
            target.onselectstart=function(){
                return false;
            }
        }
        else if (typeof target.style.MozUserSelect!="undefined")
        {
            //Firefox route
            target.style.MozUserSelect="none"
        }
        else
        {
            //All other route (ie: Opera)
            target.onmousedown=function(){
                return false
            }
        }
    }

window.getViewPoint=function(){ //get window viewpoint numbers
    var ie=document.all && !window.opera
    var domclientWidth=document.documentElement && parseInt(document.documentElement.clientWidth) || 100000 //Preliminary doc width in non IE browsers
    this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
    this.scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
    this.scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
    this.docWidth=(ie)? this.standardbody.clientWidth : (/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth, window.innerWidth)//-16
    this.docHeight=(ie)? this.standardbody.clientHeight: window.innerHeight
}
